home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2601 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: peer-news.britain.eu.net!psinntp!psinntp!psinntp!pipeline!not-for-mail
  2. From: gordo@nyc.pipeline.com (Gordon Krefting)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: how to include math.h ?
  5. Date: 18 Jan 1996 08:34:13 -0500
  6. Organization: The Pipeline
  7. Message-ID: <4dli8l$7tj@pipe3.nyc.pipeline.com>
  8. References: <4dhdgk$rj8@ipo.ipoline.com>
  9. NNTP-Posting-Host: pipe3.nyc.pipeline.com
  10. X-PipeUser: gordo
  11. X-PipeHub: nyc.pipeline.com
  12. X-PipeGCOS: (Gordon Krefting)
  13. X-Newsreader: The Pipeline v3.4.0
  14.  
  15. On Jan 16, 1996 18:43:44 in article <how to include math.h ?>,
  16. 'schew@ipoline.com (Stan. Chew)' wrote: 
  17.  
  18.  
  19. >hi, I am a beginner to use MS visual c++. I write some codes 
  20. >to calculate some functions of sine, cos and etc. I include 
  21. >math.h under hellovw.cpp (i.e. the view file) at the beginning 
  22. >of the codes. But after compling it, it says the sine and cos 
  23. >functions are invalid. Anyone can help me ? 
  24.  
  25. Do you have multiple source files (i.e. do you reference sin or cos in some
  26. file besides hellovw.cpp)? You have to make sure that math.h is included in
  27. every file that has references to the math functions.. 
  28.  
  29. Are you spelling "sin" correctly? It's "sin", not "sine" or "Sin"... 
  30.  
  31. What error message does the compiler give you? Is it a compile error or a
  32. link error?  
  33.  
  34. gordo
  35.